﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Radiation___IM.ApiCommands
{
    public class UserNickname : ICommand
    {
        private readonly string m_commandkey = "user.nickname";

        public UserNickname()
        {
        }

        public string commandKey()
        {
            return m_commandkey;
        }

        public string requiredPermission()
        {
            return "change_nick";
        }

        public void execute(string[] commands, Client client)
        {
            MessageExecution.sendDataAPI(client, client.Nickname, commands[1]);
        }
    }
}
